<?php

namespace app\seller\controller;

use app\common\service\SellerService;
use think\Controller;

class Login extends Controller
{
    /**
     * 显示资源列表
     */
    public function index()
    {
        $this->assign('title', '登录');
        return $this->fetch();
    }

    public function signin()
    {
        $data = input();
        $db   = new  SellerService();
        return json($db->login($data['phone'], $data['password']));
    }

    /*
     * 供应商申请页面  是否需要是会员
     */
    public function reg()
    {
        $this->assign('title', '申请');
        return $this->fetch();
    }

    public function apply()
    {
//        申请供应商
    }


    public function reset()
    {
        $this->assign('title', '重置密码');
        return $this->fetch();
    }

//    找回密码
}
